package com.itheima.test2;

import java.io.*;

public class Test03 {

    public static void main(String[] args) throws IOException {
        BufferedInputStream bis = new BufferedInputStream(new FileInputStream("C:\\Users\\Administrator\\Desktop\\美女\\meinv2.jpg"));
        BufferedOutputStream bos = new BufferedOutputStream(new FileOutputStream("day12\\copy\\meinv3.jpg"));

        int  b;
        long start = System.currentTimeMillis();
        while ((b=bis.read())!=-1){
            bos.write(b);
        }
        long end = System.currentTimeMillis();
        System.out.println(end-start);//15

        bis.close();
        bos.close();

    }
}
